var o = require("../../HeadController.js");
cc.Class({
    extends: cc.Component,
    properties: {
        headController: o,
        moneyLabel: cc.Label,
        rankingLabel: cc.Label,
        rankingBg: cc.Sprite,
        nameLabel: cc.Label
    },
    start: function () {
    },
    bindData: function (e) {
        this._openId = e.openId, this._avatarUrl = e.avatarUrl, this._nickName = e.nickName,
            this._data = e.data, this.refresh();
    },
    refresh: function () {
        this.nameLabel.string = this._nickName, this.moneyLabel.string = this._data.money,
            this.headController.bindData(this._avatarUrl);
        var e = this.node.getSiblingIndex() + 1;
        this.rankingLabel.string = e, e > 3 && (this.rankingBg.enabled = !1);
    }
})
